//
//  I_SendSms.m
//  YunDongGym
//
//  Created by lqq on 2018/6/7.
//  Copyright © 2018年 lqq. All rights reserved.
//

#import "I_SendSms.h"

@implementation I_SendSms
/**
 发送短信
 */
+ (NetworkTask *)sendSMSToMobile:(NSString *)mobile smsType:(SendSMSType)smsType success:(void(^)(void))successBlock failure:(ErrorBlock)failureBlock
{
    return [NET POST:@"/gym-coach-api/sms/1.0.0/sendSms" parameters:@{@"mobile":SAFE_NIL_STRING(mobile),@"smsType":@(smsType)} criticalValue:nil success:^(NSURLSessionDataTask * _Nonnull task, id  _Nonnull resultObject) {
        if (successBlock) {
            successBlock();
        }
    } failure:^(NSURLSessionDataTask * _Nonnull task, NSError * _Nonnull error) {
        if (failureBlock) {
            failureBlock(error);
        }
    }];
}
@end
